<script setup lang="ts">
import zhCN from 'ant-design-vue/es/locale/zh_CN';

const token = {
  colorPrimary: '#00b96b',
};
</script>

<template>
  <a-config-provider :locale="zhCN" :theme="{ token }">
    <router-view v-slot="{ Component, route }">
      <template v-if="Component">
        <keep-alive v-if="route.path !== '/login'">
          <component :is="Component" />
        </keep-alive>
        <component :is="Component" v-else />
      </template>
    </router-view>
  </a-config-provider>
</template>

<style scoped></style>
